﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using DotSpatial.Data;

using System.IO;


namespace FXnaAppBase
{

    /// <summary>
    /// 这里只是保存了图像的有关引用信息
    /// </summary>
    [Serializable]
    public  class Bitmap
    {

        public Bitmap(string fname, Extent ext)
        {

            this._fileName = fname;

            this._extent = ext.Clone() as Extent;
 

        }



        string _fileName;

        public string FileName
        {
            get { return _fileName; }
            set { _fileName = value; }
        }



        

        public string FileNameWithoutExt
        {
            get { return Path.GetFileNameWithoutExtension(this._fileName); }
           
        }



        Extent _extent;
        /// <summary>
        /// 用于表示图像需要被绘制的区域
        /// 这里是gis坐标范围
        /// </summary>
        public Extent Extent
        {
            get { return _extent; }
            set { _extent = value; }
        }





    }
}
